package com.carlton.api;

import org.springframework.stereotype.Component;

import feign.hystrix.FallbackFactory;

@Component
public class DistributedIdFeignFallbackFactory implements FallbackFactory<DistributedIdFeign> {

	@Override
	public DistributedIdFeign create(Throwable cause) {
		return new DistributedIdFeign() {

			@Override
			public String getSnowflakeID(String key) {
				return null;
			}
		};
	}

}
